<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BOSS.Framework.Search.Result.ISearchResult>" %>
<%@ Import Namespace="BOSS.Domain.Products" %>
<%@ Import Namespace="BOSS.Web.Extensions" %>

<%
    var data = Model.UnderlayerItems.OfType<Product>().Where(x => x.Marketable == true).Select(x => new
    {
        Id = x.Id,
        Name = x.Name,
        Model = x.Model,
        Specification = x.Specification,
        UseCount = x.UseCount.GetValueOrDefault()
    });
%>

<%= Html.ToJson(data) %>